package cn.crc.web.uservideo;

/**
 * 视频音频处理_25.6.11_liuhz
 * 在Java中合并音频和视频，可以使用Xuggler库
 */
public class MergeAudioVideo {
    public static void main(String[] args) {
        /*String audioFilename = "audio.mp3";
        String videoFilename = "video.mp4";
        String outputFilename = "output.mp4";

        IMediaReader mediaReader = ToolFactory.makeReader(videoFilename);
        mediaReader.addListener(new MyVideoListener(outputFilename));

        IMediaReader audioReader = ToolFactory.makeReader(audioFilename);
        audioReader.addListener(ToolFactory.makeWriter(outputFilename));

        while (mediaReader.readPacket() == null && audioReader.readPacket() == null);

        mediaReader.close();
        audioReader.close();*/
    }
}
